Using the shell form instead of the exec form for CMD and ENTRYPOINT instructions in Dockerfiles can lead to several issues. When you use the shell
form, the executable runs as a child process to a shell, which does not pass OS signals. This can cause problems when trying to gracefully stop
containers because the main process will not receive the signal intended to terminate it. Moreover, the exec form provides more control and
predictability over the execution of the command. It does not invoke a command shell, which means it does not have the potential side effects of shell
processing.